home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_perl.idb / usr / freeware / catman / u_man / cat1 / pod2man.Z / pod2man
Encoding:
Text File  |  1998-10-28  |  11.2 KB  |  397 lines

  1.  
  2.  
  3.  
  4.      PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))         22223333////OOOOcccctttt////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))        PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       pod2man - translate embedded Perl pod    directives into    man
  10.       pages
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       ppppoooodddd2222mmmmaaaannnn [ --------sssseeeeccccttttiiiioooonnnn====_m_a_n_e_x_t ] [ --------rrrreeeelllleeeeaaaasssseeee====_r_e_l_p_a_t_c_h ] [    --------
  14.       cccceeeennnntttteeeerrrr====_s_t_r_i_n_g    ] [ --------ddddaaaatttteeee====_s_t_r_i_n_g ] [ --------ffffiiiixxxxeeeedddd====_f_o_n_t ] [ --------
  15.       ooooffffffffiiiicccciiiiaaaallll ] [ --------llllaaaaxxxx ] _i_n_p_u_t_f_i_l_e
  16.  
  17.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.       ppppoooodddd2222mmmmaaaannnn converts its input file containing embedded pod
  19.       directives (see the _p_e_r_l_p_o_d manpage) into nroff source
  20.       suitable for viewing with _n_r_o_f_f(1) or    _t_r_o_f_f(1) using the
  21.       _m_a_n(7) macro set.
  22.  
  23.       Besides the obvious pod conversions, ppppoooodddd2222mmmmaaaannnn also takes care
  24.       of _f_u_n_c(), _f_u_n_c(n), and simple variable references like $foo
  25.       or @bar so you don't have to use code    escapes    for them;
  26.       complex expressions like $fred{'stuff'} will still need to
  27.       be escaped, though.  Other nagging little roffish things
  28.       that it catches include translating the minus    in something
  29.       like foo-bar,    making a long dash--like this--into a real em
  30.       dash,    fixing up "paired quotes", putting a little space
  31.       after    the parens in something    like _f_u_n_c(), making C++    and pi
  32.       look right, making double underbars have a little tiny space
  33.       between them,    making ALLCAPS a teeny bit smaller in
  34.       _t_r_o_f_f(1), and    escaping backslashes so    you don't have to.
  35.  
  36.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  37.       center  Set the centered header to a specific    string.     The
  38.           default is "User Contributed Perl Documentation",
  39.           unless the --official    flag is    given, in which    case
  40.           the default is "Perl Programmers Reference Guide".
  41.  
  42.       date      Set the left-hand footer string to this value.  By
  43.           default, the modification date of the    input file
  44.           will be used.
  45.  
  46.       fixed      The fixed font to use    for code refs.    Defaults to
  47.           CW.
  48.  
  49.       official
  50.           Set the default header to indicate that this page is
  51.           of the standard release in case --center is not
  52.           given.
  53.  
  54.       release Set the centered footer.  By default,    this is    the
  55.           current perl release.
  56.  
  57.       section Set the section for the .TH macro.  The standard
  58.           conventions on sections are to use 1 for user
  59.           commands,  2 for system calls, 3 for functions, 4
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 10/23/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))         22223333////OOOOcccctttt////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))        PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))
  71.  
  72.  
  73.  
  74.           for devices, 5 for file formats, 6 for games,    7 for
  75.           miscellaneous    information, and 8 for administrator
  76.           commands.  This works    best if    you put    your Perl man
  77.           pages    in a separate tree, like /_u_s_r/_l_o_c_a_l/_p_e_r_l/_m_a_n/.
  78.           By default, section 1    will be    used unless the    file
  79.           ends in ._p_m in which case section 3 will be
  80.           selected.
  81.  
  82.       lax      Don't    complain when required sections    aren't
  83.           present.
  84.  
  85.      AAAAnnnnaaaattttoooommmmyyyy ooooffff    aaaa PPPPrrrrooooppppeeeerrrr MMMMaaaannnn PPPPaaaaggggeeee
  86.       For those not    sure of    the proper layout of a man page,
  87.       here's an example of the skeleton of a proper    man page.
  88.       Head of the major headers should be setout as    a =head1
  89.       directive, and are historically written in the rather
  90.       startling ALL    UPPER CASE format, although this is not
  91.       mandatory.  Minor headers may    be included using =head2, and
  92.       are typically    in mixed case.
  93.  
  94.       NAME        Mandatory section; should be a comma-separated
  95.             list of programs or    functions documented by    this
  96.             podpage, such as:
  97.  
  98.             foo, bar - programs to do something
  99.  
  100.  
  101.       SYNOPSIS  A short usage summary for programs and functions,
  102.             which may someday be deemed    mandatory.
  103.  
  104.       DESCRIPTION
  105.             Long drawn out discussion of the program.  It's a
  106.             good idea to break this up into subsections    using
  107.             the    =head2 directives, like
  108.  
  109.             =head2 A Sample    Subection
  110.  
  111.             =head2 Yet Another Sample Subection
  112.  
  113.  
  114.       OPTIONS   Some people    make this separate from    the
  115.             description.
  116.  
  117.       RETURN VALUE
  118.             What the program or    function returns if
  119.             successful.
  120.  
  121.       ERRORS    Exceptions,    return codes, exit stati, and errno
  122.             settings.
  123.  
  124.       EXAMPLES  Give some example uses of the program.
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 10/23/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))         22223333////OOOOcccctttt////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))        PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))
  137.  
  138.  
  139.  
  140.       ENVIRONMENT
  141.             Envariables    this program might care    about.
  142.  
  143.       FILES        All    files used by the program.  You    should
  144.             probably use the F<> for these.
  145.  
  146.       SEE ALSO  Other man pages to check out, like _m_a_n(1), _m_a_n(7),
  147.             _m_a_k_e_w_h_a_t_i_s(8), or _c_a_t_m_a_n(8).
  148.  
  149.       NOTES        Miscellaneous commentary.
  150.  
  151.       CAVEATS   Things to take special care    with; sometimes    called
  152.             WARNINGS.
  153.  
  154.       DIAGNOSTICS
  155.             All    possible messages the program can print    out--
  156.             and    what they mean.
  157.  
  158.       BUGS        Things that    are broken or just don't work quite
  159.             right.
  160.  
  161.       RESTRICTIONS
  162.             Bugs you don't plan    to fix :-)
  163.  
  164.       AUTHOR    Who    wrote it (or AUTHORS if    multiple).
  165.  
  166.       HISTORY   Programs derived from other    sources    sometimes have
  167.             this, or you might keep a modification log here.
  168.  
  169.      EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  170.           pod2man program >    program.1
  171.           pod2man some_module.pm > /usr/perl/man/man3/some_module.3
  172.           pod2man --section=7 note.pod > note.7
  173.  
  174.  
  175.      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  176.       The following    diagnostics are    generated by ppppoooodddd2222mmmmaaaannnn.  Items
  177.       marked "(W)" are non-fatal, whereas the "(F)"    errors will
  178.       cause    ppppoooodddd2222mmmmaaaannnn    to immediately exit with a non-zero status.
  179.  
  180.       bad option in    paragraph %d of    %s: ``%s'' should be [%s]<%s>
  181.           (W) If you start include an option, you should set it
  182.           off as bold, italic, or code.
  183.  
  184.       can't    open %s: %s
  185.           (F) The input file wasn't    available for the given
  186.           reason.
  187.  
  188.       Improper man page - no dash in NAME header in    paragraph %d of    %s
  189.           (W) The NAME header did not have an isolated dash    in it.
  190.           This is considered important.
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                        (printed 10/23/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))         22223333////OOOOcccctttt////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))        PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))
  203.  
  204.  
  205.  
  206.       Invalid man page - no    NAME line in %s
  207.           (F) You did not include a    NAME header, which is
  208.           essential.
  209.  
  210.       roff font should be 1    or 2 chars, not    `%s'  (F)
  211.           (F) The font specified with the --fixed option was not a
  212.           one- or two-digit    roff font.
  213.  
  214.       %s is    missing    required section: %s
  215.           (W) Required sections include NAME, DESCRIPTION, and if
  216.           you're using a section starting with a 3,    also a
  217.           SYNOPSIS.     Actually, not having a    NAME is    a fatal.
  218.  
  219.       Unknown escape: %s in    %s
  220.           (W) An unknown HTML entity (probably for an 8-bit
  221.           character) was given via a E<> directive.     Besides amp,
  222.           lt, gt, and quot,    recognized entities are    Aacute,
  223.           aacute, Acirc, acirc, AElig, aelig, Agrave, agrave,
  224.           Aring, aring, Atilde, atilde, Auml, auml,    Ccedil,
  225.           ccedil, Eacute, eacute, Ecirc, ecirc, Egrave, egrave,
  226.           ETH, eth,    Euml, euml, Iacute, iacute, Icirc, icirc,
  227.           Igrave, igrave, Iuml, iuml, Ntilde, ntilde, Oacute,
  228.           oacute, Ocirc, ocirc, Ograve, ograve, Oslash, oslash,
  229.           Otilde, otilde, Ouml, ouml, szlig, THORN,    thorn, Uacute,
  230.           uacute, Ucirc, ucirc, Ugrave, ugrave, Uuml, uuml,
  231.           Yacute, yacute, and yuml.
  232.  
  233.       Unmatched =back
  234.           (W) You have a =back without a corresponding =over.
  235.  
  236.       Unrecognized pod directive: %s
  237.           (W) You specified    a pod directive    that isn't in the
  238.           known list of =head1, =head2, =item, =over, =back, or
  239.           =cut.
  240.  
  241.      NNNNOOOOTTTTEEEESSSS
  242.       If you would like to print out a lot of man page
  243.       continuously,    you probably want to set the C and D registers
  244.       to set contiguous page numbering and even/odd    paging,    at
  245.       least    on some    versions of _m_a_n(7).  Settting the F register
  246.       will get you some additional experimental indexing:
  247.  
  248.           troff -man -rC1 -rD1 -rF1    perl.1 perldata.1 perlsyn.1 ...
  249.  
  250.       The indexing merely outputs messages via .tm for each    major
  251.       page,    section, subsection, item, and any X<> directives.
  252.  
  253.      RRRREEEESSSSTTTTRRRRIIIICCCCTTTTIIIIOOOONNNNSSSS
  254.       None at this time.
  255.  
  256.      BBBBUUUUGGGGSSSS
  257.       The =over and    =back directives don't really work right.
  258.  
  259.  
  260.  
  261.      Page 4                        (printed 10/23/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))         22223333////OOOOcccctttt////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))        PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))
  269.  
  270.  
  271.  
  272.       They take absolute positions instead of offsets, don't nest
  273.       well,    and making people count    is suboptimal in any event.
  274.  
  275.      AAAAUUUUTTTTHHHHOOOORRRRSSSS
  276.       Original prototype by    Larry Wall, but    so massively hacked
  277.       over by Tom Christiansen such    that Larry probably doesn't
  278.       recognize it anymore.
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.      Page 5                        (printed 10/23/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))         22223333////OOOOcccctttt////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))        PPPPOOOODDDD2222MMMMAAAANNNN((((1111))))
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.      Page 6                        (printed 10/23/98)
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.